﻿using System.Collections.Generic;

namespace WeWork.Model
{
    /// <summary>
    /// 混合消息
    /// </summary>
    public class ChatMixed : MsgChatRoomBase
    {
        /*
        {
            "msgid":"DAQQluDa4QUY0On4kYSABAMgzPrShAE=",
            "action":"send",
            "from":"HeMiao",
            "tolist":["HeChangTian","LiuZeYu"],
            "roomid":"wr_tZ2BwAAUwHpYMwy9cIWqnlU3Hzqfg",
            "msgtime":1577414359072,
            "msgtype":"mixed",
            "mixed":{
                "item":[
                    {"type":"text","content":"{\"content\":\"你好[微笑]\\n\"}"},
                    {"type":"image","content":"{\"md5sum\":\"368b6c18c82e6441bfd89b343e9d2429\",\"filesize\":13177,\"sdkfileid\":\"CtYBMzA2OTAyMDEwMjA0NjIzMDYwMDIwMTAwMDWwNDVmYWY4Y2Q3MDIwMzBmNTliMTAyMDQwYzljNTQ3NzAyMDQ1ZTA1NmFlMjA0MjQ2NjM0NjIzNjY2MzYzNTMyMmQzNzYxMzQ2NDJkMzQ2MjYxNjQyZDM4MzMzMzM4MmQ3MTYyMzczMTM4NjM2NDYxMzczMjY2MzkwMjAxMDAwMjAzMDIwMDEwMDQxMDM2OGI2YzE4YzgyZTY0NDFiZmQ4OWIyNDNlOWQyNDI4MDIwMTAyMDIwMTAwMDQwMBI4TkRkZk2UWTRPRGcxTVRneE5URTFNRGc1TVY4eE1UTTFOak0yTURVeFh6RTFOemMwTVRNek5EYz0aIDQzMTY5NDFlM2MxZDRmZjhhMjEwY2M0NDQzZGUXOTEy\"}"}
                ]
            }
        }
        */
        /// <summary>
        /// 消息内容。可包含图片、文字、表情等多种消息。Object类型
        /// </summary>
        public MixedInfo mixed { set; get; }
    }

    public class MixedInfo
    {
        /// <summary>
        /// 消息标题。String类型
        /// </summary>
        public List<MixedItem> item { set; get; }
    }
    public class MixedItem
    {
        /// <summary>
        /// 消息类型
        /// </summary>
        public string type { set; get; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string content { set; get; }
    }
}
